/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


// the first state depends on style of the object, to hide display:none expected
//

function switchDisplay(id)
{
    elmt=document.getElementById(id);

    if(arguments[1]!=null) switchParam=arguments[1];
    else switchParam='block';

    if(elmt!=null)
    {
        if(elmt.style.display=='none') elmt.style.display=switchParam;
        else elmt.style.display='none';
    }
}
